package com.example.springboot_demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:LogResult
 * <P> Date: 2024/9/3:14:57
 */

@SuppressWarnings({"unchecked", ""})
@Data
@TableName("goods")
public class Goods {
    private static final Logger log = LoggerFactory.getLogger(Goods.class);
    /**
     * 对应表的id，id生成策略，auto 为自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "name")
    private String sname;			//名字
    private String goodsno;			//编号
    private String author;			//作者
    private String publisher;		//出版社
    private String pubtime;			//发布时间
    private Integer categoryid;			//类别
    private String description;	//详情
    private String image;			//图片
    private Integer stock;			    //库存
    private BigDecimal marketprice;	//原价
    private BigDecimal salesprice;	//现价
    private BigDecimal score;		//折扣
    private Integer remarknums;			//评论数
    private Date uptime;			//上架时间
    private int salenums;			//销量
    private String newest;			//
    private String hot;				//热卖
    private String status;			//状态
}
